import {
  interceptorHooks,
  requestCatch,
  transformResponse
} from './axios-request-impl'
import { AxiosRequest } from './axios-request'

export const service = new AxiosRequest({
  interceptorHooks,
  baseURL: import.meta.env.VITE_BASE_URL as string,
  transform: {
    transformResponse,
    requestCatch
  }
})

export default service

// 暴露出所有类型
export * from './axios-request/interface'

export * from './types'
